package com.juyu.miliao.common.msg;

import org.springframework.http.HttpStatus;


public interface CommonErrorMsgs {
	public static final ErrorMsg SERVER_ERROR = new ErrorMsg(HttpStatus.INTERNAL_SERVER_ERROR, "10000", "服务器异常");
	public static final ErrorMsg ILLEGAL_PARAM = new ErrorMsg(HttpStatus.BAD_REQUEST, "10001", "参数不合法");
	public static final ErrorMsg NO_PERMISSION = new ErrorMsg(HttpStatus.FORBIDDEN, "10002", "未授权");
	public static final ErrorMsg NO_LOGIN = new ErrorMsg(HttpStatus.UNAUTHORIZED, "10003", "未登录");
	public static final ErrorMsg VERIFICATION_CODE = new ErrorMsg(HttpStatus.BAD_REQUEST, "10004", "验证码错误");
	public static final ErrorMsg ERROR_THIRDPARTY = new ErrorMsg(HttpStatus.BAD_REQUEST, "10005", "调取第三方失败");
	public static final ErrorMsg No_DEPOSIT = new ErrorMsg(HttpStatus.BAD_REQUEST, "20001", "金币不足");
	public static final ErrorMsg ERROR_WEEK = new ErrorMsg(HttpStatus.BAD_REQUEST, "20002", "星期二才可提取现金");
	public static final ErrorMsg ERROR_MONEY = new ErrorMsg(HttpStatus.BAD_REQUEST, "20003", "可提取现金不足");
	public static final ErrorMsg ERROR_REPEAT = new ErrorMsg(HttpStatus.BAD_REQUEST, "20004", "本周已申请");
	public static final ErrorMsg ERROR_SHARE = new ErrorMsg(HttpStatus.BAD_REQUEST, "20005", "邀请码错误");
	public static final ErrorMsg ERROR_SHAREUSERID = new ErrorMsg(HttpStatus.BAD_REQUEST, "20006", "该用户已输入过邀请码");
	public static final ErrorMsg ERROR_USER_NOONE_PAY = new ErrorMsg(HttpStatus.BAD_REQUEST, "20007", "用户非首冲用户");
	public static final ErrorMsg ERROR_NICK_NAME = new ErrorMsg(HttpStatus.BAD_REQUEST, "20008", "用户昵称已存在");
	public static final ErrorMsg ERROR_USER_NAME = new ErrorMsg(HttpStatus.BAD_REQUEST, "20009", "用户名已存在");
	public static final ErrorMsg ERROR_PASS_WORD = new ErrorMsg(HttpStatus.BAD_REQUEST, "20010", "原密码输入错误");
	public static final ErrorMsg ACCOUNT_DYSABLE = new ErrorMsg(HttpStatus.BAD_REQUEST, "20011", "账号禁用");
	public static final ErrorMsg CHATNO_DEPOSIT = new ErrorMsg(HttpStatus.BAD_REQUEST, "20012", "聊天金币不足");
	public static final ErrorMsg VIOLATION_MSG = new ErrorMsg(HttpStatus.BAD_REQUEST, "20013", "该用户涉嫌违规，无法查看其信息");
	ErrorMsg COMMON_SAVE_ERROR = new ErrorMsg(HttpStatus.BAD_REQUEST, "20050", "保存失败");
	ErrorMsg COMMON_UPDATE_ERROR = new ErrorMsg(HttpStatus.BAD_REQUEST, "20051", "更新失败");
	ErrorMsg COMMON_DELETE_ERROR = new ErrorMsg(HttpStatus.BAD_REQUEST, "20052", "删除失败");
	ErrorMsg UPDATE_USER_NICENAME = new ErrorMsg(HttpStatus.BAD_REQUEST, "20053", "您的免费次数已经用完，修改请充值vip");
	ErrorMsg UPDATE_VIP_USER_NICENAME = new ErrorMsg(HttpStatus.BAD_REQUEST, "20054", "您的本月免费次数已经用完");
	ErrorMsg SEND_FREE_PHOTO_TO_PRIVITE = new ErrorMsg(HttpStatus.BAD_REQUEST, "20055", "必须先发三张免费照片，才能上传私密照片");
	ErrorMsg ERROR_SIGN_IN = new ErrorMsg(HttpStatus.BAD_REQUEST, "20056", "不可签到");
	ErrorMsg ERROR_VIP_SIGN_IN_REWARD = new ErrorMsg(HttpStatus.BAD_REQUEST, "20057", "不可领取或已领取");
	ErrorMsg NOT_VIP = new ErrorMsg(HttpStatus.BAD_REQUEST, "20058", "只对vip用户开启");
	public static final ErrorMsg RESOURCE_NOT_FOUND = new ErrorMsg(HttpStatus.NOT_FOUND, "10006", "资源不存在");
	public static final ErrorMsg RESOURCE_ALREADY_EXSIT = new ErrorMsg(HttpStatus.CONFLICT, "10007", "资源已存在");
	// 请求参数错误前缀从2开始
//	public static final ErrorMsg WRONG_SIGN = new ErrorMsg(HttpStatus.BAD_REQUEST, 20000, "签名错误");
//	public static final ErrorMsg ILLEGAL_USERNAME_FORMAT = new ErrorMsg(HttpStatus.BAD_REQUEST, 20001, "用户名格式错误");
//	public static final ErrorMsg ILLEGAL_PASSWORD_FORMAT = new ErrorMsg(HttpStatus.BAD_REQUEST, 20002, "密码格式错误");
//	public static final ErrorMsg WRONG_VERIFICATION_CODE = new ErrorMsg(HttpStatus.BAD_REQUEST, 20003, "验证码错误");
//	public static final ErrorMsg WRONG_PASSWORD = new ErrorMsg(HttpStatus.BAD_REQUEST, 20004, "密码错误");
	
}
